give away the game

Translations
выдать секрет
He gave away the game by revealing the surprise party.
Он выдал секрет, раскрыв сюрприз-вечеринку.
Definitions
To reveal a secret or disclose information that was meant to be kept hidden, often unintentionally; to inadvertently spoil a plan or surprise.